package org.jeecg.modules.jxc.inventorymanagement.commodityloss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: jxc_damage_lisjxc_goods
 * @Author: jeecg-boot
 * @Date: 2021-12-21
 * @Version: V1.0
 */
@Data
@TableName("jxc_damage_lisjxc_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "jxc_damage_lisjxc_goods对象", description = "jxc_damage_lisjxc_goods")
public class JxcDamageLisjxcGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 商品报损单商品列表id，主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "商品报损单商品列表id，主键")
    private Integer id;
    /**
     * 商品编号id，外键
     */
    @Excel(name = "商品编号id，外键", width = 15)
    @ApiModelProperty(value = "商品编号id，外键")
    private Integer goodsId;
    /**
     * 商品编码
     */
    @Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
    private String goodsCode;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    /**
     * 商品型号
     */
    @Excel(name = "商品型号", width = 15)
    @ApiModelProperty(value = "商品型号")
    private String goodsModel;
    /**
     * 商品单位
     */
    @Excel(name = "商品单位", width = 15)
    @ApiModelProperty(value = "商品单位")
    private String goodsUnit;
    /**
     * 报损数量
     */
    @Excel(name = "报损数量", width = 15)
    @ApiModelProperty(value = "报损数量")
    private Integer goodsNum;
    /**
     * 商品单价
     */
    @Excel(name = "商品单价", width = 15)
    @ApiModelProperty(value = "商品单价")
    private Double price;
    /**
     * 总金额
     */
    @Excel(name = "总金额", width = 15)
    @ApiModelProperty(value = "总金额")
    private Double total;
    /**
     * 商品报损单id，外键
     */
    @Excel(name = "商品报损单id，外键", width = 15)
    @ApiModelProperty(value = "商品报损单id，外键")
    private Integer damageLisjxcId;
    /**
     * 商品类别id，外键
     */
    @Excel(name = "商品类别id，外键", width = 15)
    @ApiModelProperty(value = "商品类别id，外键")
    private Integer goodsTypeId;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 0表示未删除,1表示删除
     */
    @Excel(name = "0表示未删除,1表示删除", width = 15)
    @ApiModelProperty(value = "0表示未删除,1表示删除")
    private Integer delFlag;
}
